<?php
/**
 * Created by PhpStorm.
 * User: HLG
 * Date: 2019/10/16
 * Time: 14:01
 */
namespace app\api\model;
use think\Request;
use think\Db;

/**
 * 商城类
 *
 * Class Goods
 * @package app\api\model
 */
class GoodsOrder extends BaseModel
{
    protected $table = 'content_classification_order';

    /**
     * 创建订单
     *
     * @param $data
     * @return bool
     */
    public function createOrder($data)
    {
        $result = $this->insertGetId($data);
        if($result){
            return $result;
        }else{
            return false;
        }
    }
}